<?php
class Application_Form_Login extends Zend_Form
{
    public function init ()
    {
    	
        $this->setName('login');
        $this->setAction('');
        $this->setMethod('post');
        
        $this->setAttribs(array('id' => 'form_login'));
        
        $login = new Zend_Form_Element_Text('login');        
        $login->setLabel('Nome de usuário:');
        $login->setRequired(true);        
        $login->setAttribs(array('title' => 'Login','size'=>'40'));
        
        $senha = new Zend_Form_Element_Password('senha');
        $senha->setRequired(true);
        $senha->setLabel('Senha:');
        $senha->setAttribs(array('title' => 'senha','size'=>'40'));
        
        $entrar = new Zend_Form_Element_Submit('submit');        
        $entrar->setAttribs(array('title'=>'Entrar', 'style'=>'font-weight:bold;'));               
       
        $this->addElements(array($login, $senha, $entrar));
    }
}

